<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.dao.CommonDAO"%>
<%@page import="com.util.Info"%>
<%@page import="com.util.PageManager"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.model.Notice"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>可穿戴健康监测系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK rel="shortcut icon" type=image/x-icon href="/images/favicon.ico">
<LINK title=ITeye rel=search type=application/opensearchdescription+xml href="/open_search.xml">
<LINK title="" rel=alternate type=application/rss+xml href="/rss">
<LINK rel=stylesheet type=text/css href="frontfiles/blog.css" media=screen>
<LINK rel=stylesheet type=text/css href="frontfiles/blue.css" media=screen>
<SCRIPT type=text/javascript src="frontfiles/application.js"></SCRIPT>

<SCRIPT type=text/javascript>

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-535605-1']);
  _gaq.push(['_setDomainName', 'iteye.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</SCRIPT>
  </head>
  
  <BODY>
  <%CommonDAO dao = (CommonDAO)Info.getDao(request,"CommonDAO");  %>


<jsp:include page="top.jsp"></jsp:include>


<DIV id=content class=clearfix>
<DIV id=main>
<DIV class=blog_main_title> <SPAN>新闻资讯</SPAN> 
<DIV id=fd></DIV></DIV>
<% 
String f = request.getParameter("f");
	String hql = "from Notice where 1=1 and type='新闻资讯' ";
	String url = "/wearablehealthymonitorsys/index.jsp?1=1";
	hql+=" order by id desc";
	PageManager pageManager = PageManager.getPage("index.jsp?1=1",10, request);
    pageManager.doList(hql);
    PageManager bean= (PageManager)request.getAttribute("page");
    ArrayList<Notice> dailylist=( ArrayList<Notice>)bean.getCollection();
	for(Notice n:dailylist){
%>
<DIV class=blog_main>
<DIV class=blog_title>
<H3><A 
href="infox.jsp?id=<%=n.getId() %>"><%=n.getTitle() %></A></H3>
<UL class=blog_categories>
  <LI>发布日期：<%=n.getSavetime() %></LI>
  </UL>
</DIV>
<DIV class=blog_content>
<%String c = n.getContent();
if(c.length()>100){ 
c = c.substring(0,100)+"...";
%>
<%} %>
<%=c %>
</DIV>
</DIV>

  <%} %>
  <div align="center">${page.info }</div>
</DIV>
<jsp:include page="indexleft.jsp"></jsp:include>

</DIV>


<jsp:include page="foot.jsp"></jsp:include>


<SCRIPT type=text/javascript>
  document.write("<img src='http://stat.iteye.com/?url="+ encodeURIComponent(document.location.href) + "&referrer=" + encodeURIComponent(document.referrer) + "&user_id=' width='0' height='0' />");
</SCRIPT>
</BODY></HTML>
